# Maintainer: François Chavant <alpine@mail.chavant.info>
pkgname=nbtscan
pkgver=1.6
pkgrel=0
pkgdesc="NETBIOS nameserver scanner"
url="http://www.unixwiz.net/tools/nbtscan.html"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake"
source="nbtscan-$pkgver.tar.gz::https://github.com/resurrecting-open-source-projects/nbtscan/archive/$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-dbg"
options="!check"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b791357160ae7fe784ebf3b74df551c0b7dcaeefae2ddd585a9e5ac0fe7dd1bb32f00d2b898dcd700e74809708f42fc8e5f0022254e1282914b3f668564b4bcb  nbtscan-1.6.tar.gz"
